package com.twu.biblioteca;

import com.twu.biblioteca.login.Login;
import com.twu.biblioteca.medias.book.Book;
import com.twu.biblioteca.library.Library;
import com.twu.biblioteca.menu.InputHandle;
import com.twu.biblioteca.menu.Menu;
import com.twu.biblioteca.menu.View;
import com.twu.biblioteca.medias.movie.Movie;
import com.twu.biblioteca.user.User;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class BibliotecaApp {

    public static void main(String[] args) {
        List<Book> books = new ArrayList<Book>();
        Book firstBook = new Book(1, "The Hobbit", "Tokien", 1937);
        Book lastBook = new Book(2, "Book", "Author", 2015);
        books.add(firstBook);
        books.add(lastBook);

        List<Movie> movies = new ArrayList<Movie>();
        Movie firstMovie = new Movie(1, "The Hoobit: Teh Desolation of Smaug", "Peter Jackson", 9, 2013);
        Movie lastMovie = new Movie(2, "Guardians of the galaxy", "James Gunn", 9, 2014);
        movies.add(firstMovie);
        movies.add(lastMovie);

        Library library = new Library(books, movies);

        InputHandle inputHandle = new InputHandle();
        View view = new View();

        List<User> users = new ArrayList<User>();
        User user = new User("111-1111", "123456", "Customer", "120, Flower Street", "2222-2222");
        users.add(user);

        Login login = new Login(users);

        Menu menu = new Menu(inputHandle, view, library, login);

        menu.startBiblioteca();

    }
}
